package org.example.service.impl;

import org.example.mapper.PeopleMapper;
import org.example.pojo.ReqBean;
import org.example.pojo.vo.PersonOv;
import org.example.pojo.vo.StudentInfoOv;
import org.example.service.PeopleService;
import org.example.utils.HttpRequestUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PeopleServiceImpl implements PeopleService {

    @Autowired
    private PeopleMapper peopleMapper;
    @Autowired
    private HttpRequestUtil httpRequestUtil;


    @Override
    public ReqBean<List<PersonOv>> queryTalent(StudentInfoOv param) {
        ReqBean<List<PersonOv>> personOv = new ReqBean<>();
        personOv = httpRequestUtil.postRequest("/hou/talent/query", param, personOv, ReqBean.class);
        return personOv;
    }

    @Override
    public Long count() {
        return peopleMapper.count();
    }


}
